from celery_tasks.main import app
from libs.yuntongxun.sms import CCP


@app.task(name='send_msm_code') # name为函数名字,默认为send_msm_code
def send_msm_code(mobile, sms_code):
    # 7.发送短信
    ccp = CCP()
    ccp.send_template_sms(mobile, [sms_code, 5], 1)
